package com.edu.service.user;

import com.edu.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ZCN
 * @version 1.0
 * @date 2021/11/18 14:17
 */
public interface UserService {
    int login(User user) throws SQLException;
    int register(User user) throws SQLException;
    List<User> selectByordinary() throws SQLException;

    User selectByUsername(String username) throws SQLException;
    User selectByUsername(Integer id) throws SQLException;
}
